package com.ksvip.next.components.redis.lock;

import org.springframework.data.redis.core.RedisTemplate;

public class RedisTemplateLockService implements LockService {

    private RedisTemplate<String, String> redisTemplate;

    public RedisTemplateLockService(RedisTemplate<String, String> redisTemplate) {
        this.redisTemplate = redisTemplate;
    }

    @Override
    public boolean tryLock(String lockKey, String value, int expireTime) {
        // TODO
        return false;
    }

    @Override
    public boolean releaseLock(String lockKey, String value) {
        // TODO
        return false;
    }
}
